package com.aabte.design2.behavioral.strategy;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/5/4
 */
public class Context {

    private Strategy strategy;

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    int executeStrategy(int a, int b) {
        return strategy.execute(a, b);
    }

}
